﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200038F RID: 911
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DeactivateFarmElementScRsp : IMessage<DeactivateFarmElementScRsp>, IMessage, IEquatable<DeactivateFarmElementScRsp>, IDeepCloneable<DeactivateFarmElementScRsp>, IBufferMessage
	{
		// Token: 0x17000BC1 RID: 3009
		// (get) Token: 0x060028E3 RID: 10467 RVA: 0x00071BCD File Offset: 0x0006FDCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DeactivateFarmElementScRsp> Parser
		{
			get
			{
				return DeactivateFarmElementScRsp._parser;
			}
		}

		// Token: 0x17000BC2 RID: 3010
		// (get) Token: 0x060028E4 RID: 10468 RVA: 0x00071BD4 File Offset: 0x0006FDD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DeactivateFarmElementScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000BC3 RID: 3011
		// (get) Token: 0x060028E5 RID: 10469 RVA: 0x00071BE6 File Offset: 0x0006FDE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DeactivateFarmElementScRsp.Descriptor;
			}
		}

		// Token: 0x060028E6 RID: 10470 RVA: 0x00071BED File Offset: 0x0006FDED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DeactivateFarmElementScRsp()
		{
		}

		// Token: 0x060028E7 RID: 10471 RVA: 0x00071BF5 File Offset: 0x0006FDF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DeactivateFarmElementScRsp(DeactivateFarmElementScRsp other) : this()
		{
			this.entityId_ = other.entityId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060028E8 RID: 10472 RVA: 0x00071C26 File Offset: 0x0006FE26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DeactivateFarmElementScRsp Clone()
		{
			return new DeactivateFarmElementScRsp(this);
		}

		// Token: 0x17000BC4 RID: 3012
		// (get) Token: 0x060028E9 RID: 10473 RVA: 0x00071C2E File Offset: 0x0006FE2E
		// (set) Token: 0x060028EA RID: 10474 RVA: 0x00071C36 File Offset: 0x0006FE36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntityId
		{
			get
			{
				return this.entityId_;
			}
			set
			{
				this.entityId_ = value;
			}
		}

		// Token: 0x17000BC5 RID: 3013
		// (get) Token: 0x060028EB RID: 10475 RVA: 0x00071C3F File Offset: 0x0006FE3F
		// (set) Token: 0x060028EC RID: 10476 RVA: 0x00071C47 File Offset: 0x0006FE47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060028ED RID: 10477 RVA: 0x00071C50 File Offset: 0x0006FE50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DeactivateFarmElementScRsp);
		}

		// Token: 0x060028EE RID: 10478 RVA: 0x00071C5E File Offset: 0x0006FE5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DeactivateFarmElementScRsp other)
		{
			return other != null && (other == this || (this.EntityId == other.EntityId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060028EF RID: 10479 RVA: 0x00071C9C File Offset: 0x0006FE9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EntityId != 0U)
			{
				num ^= this.EntityId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060028F0 RID: 10480 RVA: 0x00071CF4 File Offset: 0x0006FEF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060028F1 RID: 10481 RVA: 0x00071CFC File Offset: 0x0006FEFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060028F2 RID: 10482 RVA: 0x00071D08 File Offset: 0x0006FF08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EntityId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.EntityId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060028F3 RID: 10483 RVA: 0x00071D64 File Offset: 0x0006FF64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntityId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060028F4 RID: 10484 RVA: 0x00071DBC File Offset: 0x0006FFBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DeactivateFarmElementScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EntityId != 0U)
			{
				this.EntityId = other.EntityId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060028F5 RID: 10485 RVA: 0x00071E0C File Offset: 0x0007000C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060028F6 RID: 10486 RVA: 0x00071E18 File Offset: 0x00070018
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.EntityId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001040 RID: 4160
		private static readonly MessageParser<DeactivateFarmElementScRsp> _parser = new MessageParser<DeactivateFarmElementScRsp>(() => new DeactivateFarmElementScRsp());

		// Token: 0x04001041 RID: 4161
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001042 RID: 4162
		public const int EntityIdFieldNumber = 9;

		// Token: 0x04001043 RID: 4163
		private uint entityId_;

		// Token: 0x04001044 RID: 4164
		public const int RetcodeFieldNumber = 10;

		// Token: 0x04001045 RID: 4165
		private uint retcode_;
	}
}
